Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / SparseArray<T> Class / Move Method
The SparseArray that contains the data to move.
A 32-bit integer that represents the index in the source at which moving begins.
The SparseArray that receives the data.
A 32-bit integer that represents the index in the target at which storing begins.
A 32-bit integer that represents the number of elements to move.


In This Topic
    Move Method (SparseArray<T>)
    In This Topic
    Moves a range of elements from an SparseArray starting at the specified source index and pastes them to another SparseArray starting at the specified target index. Elements of old range will be clear. The length and the indexes are specified as 32-bit integers.
    Syntax
    'Declaration
     
    
    Public Shared Sub Move( _
       ByVal source As SparseArray(Of T), _
       ByVal sourceIndex As Integer, _
       ByVal target As SparseArray(Of T), _
       ByVal targetIndex As Integer, _
       ByVal length As Integer _
    ) 
    'Usage
     
    
    Dim source As SparseArray(Of T)
    Dim sourceIndex As Integer
    Dim target As SparseArray(Of T)
    Dim targetIndex As Integer
    Dim length As Integer
     
    SparseArray(Of T).Move(source, sourceIndex, target, targetIndex, length)

    Parameters

    source
    The SparseArray that contains the data to move.
    sourceIndex
    A 32-bit integer that represents the index in the source at which moving begins.
    target
    The SparseArray that receives the data.
    targetIndex
    A 32-bit integer that represents the index in the target at which storing begins.
    length
    A 32-bit integer that represents the number of elements to move.
    See Also